

/**
 * @author 付大大
 * @description
 * @create 2021-01-21 15:16
 */
public class Test2 {
    public static void main(String[] args) {
        long n = 0;
        int xx = 123;
        while(xx != 0) {
            n = n*10 + xx%10;
            xx = xx/10;
        }
        System.out.println((int) n == n ? (int) n : 0);
    }

}
